package com.meihua.code.leader.domain;

public  class Node{
        private String name;
        private String ip;
        private int port;
        public Node(String name, String ip, int port) {
            this.name = name;
            this.ip = ip;
            this.port = port;
        }

    @Override
    public String toString() {
        return "Node{" +
                "name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                '}';
    }

    public String getName() {
        return name;
    }

    public String getIp() {
        return ip;
    }

    public int getPort() {
        return port;
    }
}